import requestInstance from '/utils/http.js'

/**
 * @description 更新头像
 * @param {String}  filePath 要上传文件的路径
 * @param {String}  name 要上传文件的key
 * @returns {Promise}  
 */
export const reqUploadFile = (filePath,name)=>{
	return requestInstance.upload('/fileUpload',filePath,name)
}
/**
 * @description 更新昵称
 * @param {String} 要更新的昵称
 * @returns {Promise}
 */
export const reqUpdateAvatar = (userInfo)=>{
	return requestInstance.post('/weixin/updateUser',userInfo)
}